package com.ganapuntos.client;

import com.fer.t1.client.PageStarter;
import com.ganapuntos.client.pages.home.HomeHistory;
import com.ganapuntos.client.pages.home.HomePresenter;
import com.ganapuntos.client.pages.home.HomeView;
import com.ganapuntos.client.pages.profile.ProfileHistory;
import com.ganapuntos.client.pages.profile.ProfilePresenter;
import com.ganapuntos.client.pages.profile.ProfileView;
import com.ganapuntos.client.pages.promotion.PromotionHistory;
import com.ganapuntos.client.pages.promotion.PromotionPresenter;
import com.ganapuntos.client.pages.promotion.PromotionView;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.History;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Ganapuntos implements EntryPoint {
	
	@Override
	public void onModuleLoad() {
		
		PageStarter.start("mainPanel");
		PageStarter.startPage(
				new HomeHistory(),
				new HomePresenter(), 
				new HomeView(), "");
		PageStarter.startPage(
				new ProfileHistory(),
				new ProfilePresenter(), 
				new ProfileView(), "profile");
		PageStarter.startPage(
				new PromotionHistory(),
				new PromotionPresenter(), 
				new PromotionView(), "promotion");
		History.fireCurrentHistoryState();
		
		
	}
	
}
